<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>前端站点</title>
    <link rel="stylesheet" href="/static_public/node_modules/bootstrap/dist/css/bootstrap.css"/>
    <style>
        .wrap { width: 1160px ;margin: 0 auto 100px auto;}
        .nav li { line-height: 15px; }
        hr { margin: 5px 0 }
    </style>
</head>
<body>
<div class="wrap container">
    <h1 style="text-align: center">站点列表</h1>

    <div class="row">
        <ul class="col-md-3 nav" id="js_jenkins_config">
            <h3><a href="javascript:;" onclick="javascript:window.location='http://'+document.domain+':8080/jenkins'">jenkins</a>生成站点
            </h3>
        </ul>
        <ul class="col-md-5">
            <h3>人工配置站点</h3>
            <hr>
            <li>
                <a href="###" onclick="javascript:window.location.port=8000">全民营销运营中心</a>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8001">全民营销微信设置</a>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8002">全民营销重构后台</a>
            </li>
            <li>
                <a href="http://dev-microsite-cg.myscrm.cn:8011/Broker/Account/login?token=iiylph1409309103&devopenid=abcd">全民营销微网站（git@git.mysoft.com.cn:yunke/qmyx_wwz_refactor.git）</a>
                <div>ftp路径：<pre>/usr/local/backend/qmyx_wwz_refactor</pre></div>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8005">微楼书后台</a>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8006">微楼书前台</a>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8007">移动销售后台（git@git.mysoft.com.cn:ydxs_group/ydxs.git）</a>
            </li>
            <li>
                <a href="http://dev-ydxs-microsite.myscrm.cn:8009/Sales/Account/login?token=kaswfw1427180336&devopenid=abc">移动销售微网站（git@git.mysoft.com.cn:micro_ydxs_group/micro_ydxs.git）</a>
                <div>ftp路径：<pre>/usr/local/backend/micro_ydxs</pre></div>
            </li>
            <li>
                <a href="http://dev-ydxs-cg.myscrm.cn:8013/wuzhongadmin/salemanage/cst/index?proj_id=39cb2f4b-84fc-7e6d-e710-22ed533b11da">移动销售微网站（git@git.mysoft.com.cn:yunke/ydxsrefactor.git）</a>
                <div>ftp路径：<pre>/usr/local/backend/ydxsrefactor</pre></div>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8014">云客官方站点</a>
            </li>
            <li>
                <a href="###" onclick="javascript:window.location.port=8016">新房直通车官网</a>
            </li>
            <li>
                <a href="###" onclick="javascript:location.href='http://'+location.host+':8017/html/exp_center.html'">体验中心</a>
            </li>
        </ul>
        <div class="col-md-4">
            <h3>host配置</h3>
            <pre>10.5.7.138 dev-qmyx-cg.myscrm.cn
10.5.7.138 dev-ydxs-microsite.myscrm.cn
10.5.7.138 dev-microsite-cg.myscrm.cn
10.5.7.138 dev-ydxs-cg.myscrm.cn
            </pre>
        </div>
    </div>
</div>
<script src="/static_public/node_modules/jquery/dist/jquery.js"></script>
<script src="/static_public/node_modules/underscore/underscore.js"></script>
<script>
    (function () {
        var $jsJenkinsConfig = $('#js_jenkins_config');
        $.getJSON('index.json?_' + new Date().getTime(), function (data) {
            data = _.groupBy(data, 'projectName');
            _.each(data, function (value, key) {
                $jsJenkinsConfig.append('<hr>');
                $jsJenkinsConfig.append('<h4>' + value[0].name + '</h4>');
                _.each(value, function (obj) {
                    var host = (obj.domain || location.hostname) + ':' + obj.port;
                    $jsJenkinsConfig.append('<li><a href="javascript:;" onclick="location.host=\'' + host + '\'">' + obj.branch + '</a>');
                })
            })
        })
    })();
</script>
</body>
</html>